package cn.wolfcode.trip.base.domain;


import lombok.*;

@Setter@Getter@ToString
@NoArgsConstructor
@AllArgsConstructor
public class User extends BaseDomain{

    public static final Integer GENDER_NONE = 0; //保密
    public static final Integer GENDER_MALE = 1; //男
    public static final Integer GENDER_FEMALE = 2; //女


    private String email;

    private String nickName;

    private String password;

    private String place;

    private String headImgUrl;
    //性别
    private Integer gender=GENDER_NONE;

    private String coverImgUrl;
    //标记，个性签名
    private String sign;


    public String getGenderName() {
        String str="保密";
        if (gender==GENDER_MALE){
            return str="男";
        }else if (gender==GENDER_FEMALE){
            return str="女";
        }
        return str;
    }
}